package com.joe.web.test;

import java.util.List;

public class Parent {

    /**
     * id
     */
    private Integer id;

    /**
     * name
     */
    private String name;

    private List<Child> childList;

    public Parent() {
    }

    public Parent(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Child> getChildList() {
        return this.childList;
    }

    public void setChildList(List<Child> childList) {
        this.childList = childList;
    }

    @Override
    public String toString() {
        return "Parent{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", childList=" + childList +
                '}';
    }
}
